package com.harvest.scientific.ladder.page.adapter

import android.content.Context
import android.view.LayoutInflater
import android.view.ViewGroup
import com.harvest.scientific.ladder.adpater.BaseQuickAdapter
import com.harvest.scientific.ladder.databinding.ItemEmailBinding

class EmailAdapter : BaseQuickAdapter<String, EmailViewHolder>() {

    override fun onCreateViewHolder(
        context: Context,
        parent: ViewGroup,
        viewType: Int
    ): EmailViewHolder {
        return EmailViewHolder(ItemEmailBinding.inflate(LayoutInflater.from(context), parent, false))
    }

    override fun onBindViewHolder(holder: EmailViewHolder, position: Int, item: String?) {
        holder.viewBinding.tvEmail.text = item
    }
}